
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-08-13
 * Time: 17:44
 */
public class Test {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.lastAdd(1);
        list.lastAdd(2);
        list.lastAdd(3);
        list.lastAdd(4);
        list.lastAdd(5);
        list.lastAdd(6);
        list.dispaly();
        list.reverseBetween(2,4);
        list.dispaly();
    }


}

